<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script>
			var json = {"name":"诠注","age":18,"arr":[1,2,3]};
			//对象本身没有length,所以不能用for循环遍历
			console.log(json.length);
			
// 			for(var i = 0;i<json.length;i++){
// 				console.log(json[i]);
// 			}

			
		</script>
	</body>
</html>
